function checkForm(writeform){

	if(!writeform.coffee_kind.value){
	  alert("상품의 분류를 선택하십시오");
	  writeform.coffee_kind.focus();
	  return false;
	}
	if(!writeform.coffee_title.value){
	  alert("상품의 제목을 입력하십시오");
	  writeform.coffee_title.focus();
	  return false;
	}
	
	if(!writeform.coffee_price.value){
	  alert("상품의 가격을 입력하십시오");
	  writeform.coffee_price.focus();
	  return false;
	}
        
	if(!writeform.coffee_count.value){
	  alert("상품의 수량을 입력하십시오");
	  writeform.coffee_count.focus();
	  return false;
	}
	
	if(!writeform.author.value){
	  alert("원산지를 입력하십시오");
	  writeform.author.focus();
	  return false;
	}
	
	if(!writeform.publishing_com.value){
	  alert("제조사를 입력하십시오");
	  writeform.publishing_com.focus();
	  return false;
	}
	
	if(!writeform.coffee_content.value){
	  alert("상품의 설명을 입력하십시오");
	  writeform.coffee_content.focus();
	  return false;
	}
		
	writeform.action = "coffeeRegisterPro.jsp";
    writeform.submit();
	
 } 
 
function updateCheckForm(writeform){
	
	if(!writeform.coffee_kind.value){
		  alert("상품의 분류를 선택하십시오");
		  writeform.coffee_kind.focus();
		  return false;
		}
		if(!writeform.coffee_title.value){
		  alert("상품의 제목을 입력하십시오");
		  writeform.coffee_title.focus();
		  return false;
		}
		
		if(!writeform.coffee_price.value){
		  alert("상품의 가격을 입력하십시오");
		  writeform.coffee_price.focus();
		  return false;
		}
	        
		if(!writeform.coffee_count.value){
		  alert("상품의 수량을 입력하십시오");
		  writeform.coffee_count.focus();
		  return false;
		}
		
		if(!writeform.author.value){
		  alert("원산지를 입력하십시오");
		  writeform.author.focus();
		  return false;
		}
		
		if(!writeform.publishing_com.value){
		  alert("제조사를 입력하십시오");
		  writeform.publishing_com.focus();
		  return false;
		}
		
		if(!writeform.coffee_content.value){
		  alert("상품의 설명을 입력하십시오");
		  writeform.coffee_content.focus();
		  return false;
		}
			
		writeform.action = "coffeeUpdatePro.jsp";
	    writeform.submit();
		
	 } 
